package com.slwu.adapter;

import java.math.BigDecimal;

public class Main {
    public static void main(String[] args) {
        int sources[] = {84, 72, 93, 94, 85, 76, 87, 88, 89, 100, 98, 97, 96, 95};
        OperationAdapter adapter = new OperationAdapter();

        System.out.println("排序前：");
        for (int i = 0; i < sources.length; i++) {
            System.out.print(sources[i] + " ");
        }
        System.out.println();

        System.out.println("排序后：");
        int[] sorted = adapter.sort(sources);
        for (int i = 0; i < sources.length; i++) {
            System.out.print(sorted[i] + " ");
        }
        System.out.println();

        System.out.println("搜索90");
        System.out.println(adapter.search(sorted, 90));
        System.out.println("搜索99");
        System.out.println(adapter.search(sorted, 100));

        System.out.println(new BigDecimal("52853344.5239").multiply(new BigDecimal("0.0015")).toEngineeringString());

    }
}
